<h1>Editing productuser</h1>

<%= error_messages_for :productuser %>

<% form_for(@productuser) do |f| %>

<fieldset>	
	<label for="productuser_amount"><span>数量</span><%= f.text_field 'amount'  %></label><p/>
	<label for="productuser_per_cost"><span>单价</span><%= f.text_field 'per_cost'  %></label><p/>
	<label for="productuser_total_cost"><span>总价</span><%= f.text_field 'total_cost'  %></label><p/>
</fieldset>
	<%#= f.text_field 'amount'  %>
	<%#= f.text_field 'per_cost'  %>
	<%#= f.text_field 'total_cost'  %>
  <p>
    <%= f.submit "Update" %>
  </p>
<% end %>

<%#= link_to 'Show', @productuser %>
<%= link_to 'Back', "/users/#{@productuser.user.id}" %>
